# -*- coding:utf-8 -*-
# @Time: 2020/7/15 10:26
# @Author: liupengfei
# @File: urls.py

from django.urls import path
from rest_framework.routers import SimpleRouter
from .views import MenuViewSet, PermissionGroupViewSet, PermossionViewSet, RoleViewSet

app_name = 'rbac'
urlpatterns = [
    # path('dict/', DictView.as_view())  # 初始化 分类、标签
]

router = SimpleRouter()
router.register('menu', MenuViewSet)
router.register('permissiongroup', PermissionGroupViewSet)
router.register('permission', PermossionViewSet)
router.register('role', RoleViewSet)
urlpatterns += router.urls
